package cn.com.idmy.base.exception;

import cn.com.idmy.base.DefaultError;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(fluent = true, chain = true)
public class DeleteException extends BizException {
    public DeleteException() {
        super(DefaultError.DELETE.code(), DefaultError.DELETE.msg());
    }

    public DeleteException(String message) {
        super(DefaultError.DELETE.code(), message);
    }

    public DeleteException(String message, Object... params) {
        super(DefaultError.DELETE.code(), message, params);
    }

    public DeleteException(int code, String message) {
        super(code, message);
    }

    public DeleteException(int code, String message, Object... params) {
        super(code, message, params);
    }

    public DeleteException(Throwable cause, int code, String message) {
        super(cause, code, message);
    }

    public DeleteException(Throwable cause, int code, String message, Object... params) {
        super(cause, code, message, params);
    }

    public DeleteException(String message, Throwable cause) {
        super(message, cause);
    }

    public DeleteException(Throwable cause) {
        super(cause);
    }
}
